﻿//-----------------------------------------------------------------------------
// Copyright (c) BaFang Corporation.  All rights reserved.
//-----------------------------------------------------------------------------

using System;
using System.Text;
namespace BaFangSpider
{
    [Serializable]
    public class WeatherReport
    {
        public WeatherInfo InfoToday { get; set; }
        public WeatherInfo InfoNight { get; set; }
        public WeatherInfo InfoTomorrow { get; set; }
        public WeatherInfo InfoTomorrowNight { get; set; }
        public WeatherZS ZSToday { get; set; }
        public DateTime Today { get; set; }

        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("白天：");
            sb.Append(InfoToday.Temperature);
            sb.Append(",");
            sb.Append(InfoToday.Weather);
            sb.Append(",");
            sb.Append(InfoToday.Wind);
            sb.Append("。");

            sb.Append("今晚：");
            sb.Append(InfoNight.Temperature);
            sb.Append(",");
            sb.Append(InfoNight.Weather);
            sb.Append(",");
            sb.Append(InfoNight.Wind);
            sb.Append("。");

            sb.Append("明日：");
            sb.Append(InfoTomorrow.Temperature);
            sb.Append(",");
            sb.Append(InfoTomorrow.Weather);
            sb.Append(",");
            sb.Append(InfoTomorrow.Wind);
            sb.Append("。");

            sb.Append("明晚：");
            sb.Append(InfoTomorrowNight.Temperature);
            sb.Append(",");
            sb.Append(InfoTomorrowNight.Weather);
            sb.Append(",");
            sb.Append(InfoTomorrowNight.Wind);
            sb.Append("。");

            return sb.ToString();
        }
    }
}
